//#include "threadpool.hpp"
//#include "threadpool V2.hpp"
//#include "threadpool V3.hpp"
#include "threadpoolV4.hpp"
#include <time.h>
#include <cstring>
int main()
{
    srand(time(nullptr));
    /*ThreadPool<Task> pool; 
    pool.Init();
    pool.start();
    pool.check();*/
    auto instance=ThreadPool<Task>::GetInstance();
    while(true)
    {
        int x=rand()%20;
        int y=rand()%10;
        const char *arr="+-*/%";
        char c=arr[rand()%strlen(arr)];
        Task t(x,y,c);
        //pool.push(t);
        instance->push(t);
        sleep(1);
    }

    return 0;
}